import request from '@/router/axios';
// 获取列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-sale/transportationcost/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 详情
export const detail = (id) => {
  return request({
    url: '/api/blade-sale/transportationcost/detail',
    method: 'get',
    params: {
      id
    }
  })
}

// 保存
export const save = (data, ids) => {
  return request({
    url: '/api/blade-sale/transportationcost/save',
    method: 'post',
    data: data,
    params: {
      ids
    }
  })
}
//修改
export const update = (data, ids) => {
  return request({
    url: '/api/blade-sale/transportationcost/update',
    method: 'post',
    data: data,
    params: {
      ids
    }
  })
}

//批量删除
export const remove = (ids) => {
  return request({
    url: '/api/blade-sale/transportationcost/remove',
    method: 'post',
    params: {
      ids
    }
  })
}

// //获取基本信息运输成本信息列表
// export const getTransportateCostList = (transportType) => {
//   return request({
//       url: '/api/blade-sale/transportationcost/getList',
//       method: 'get',
//       params: {
//         transportType
//       }
//   })
// }
//获取基本信息运输成本信息列表2
export const getTransportateCostList2 = () => {
  return request({
      url: '/api/blade-sale/transportationcost/list',
      method: 'get',
      params: {
        
      }
  })
}
